import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询城市体检投诉建议全部
export const cityTargetComplaintList = data => {
    return $get('/risk/cityTargetComplaint/list', data)
}

// 查询城市体检投诉建议列表
export const cityTargetComplaintPage = data => {
    return $get('/risk/cityTargetComplaint/page', data)
}

// 新增城市体检投诉建议
export const cityTargetComplaintAdd = data => {
    return $post('/risk/cityTargetComplaint/add', data)
}

// 查询城市体检投诉建议详情
export const cityTargetComplaintDetail = id => {
    return $get('/risk/cityTargetComplaint/detail/'+ id)
}

// 更新城市体检投诉建议
export const cityTargetComplaintUpdate = data => {
    return $post('/risk/cityTargetComplaint/update', data)
}

// 删除城市体检投诉建议
export const cityTargetComplaintDelete = id => {
    return $post('/risk/cityTargetComplaint/delete/'+ id)
}

// 导出城市体检投诉建议
export const cityTargetComplaintExport = (data,fileName) => {
    return $download('/risk/cityTargetComplaint/export',data, fileName)
}

// 投诉建议回复
export const cityTargetComplaintReply = data =>{
  return $post('/risk/cityTargetComplaint/replyComplaint', data)
}
